home *** CD-ROM | disk | FTP | other *** search
/ SGI Support Advantage Support Libraries 1995 June / SGI Support Advantage Support Libraries 1995 Jun.iso / insight / lib_60 / SGI_bookshelves / SGI_Support / mm / bin / audiocheck next >
Text File  |  1995-06-06  |  676b  |  23 lines

  1. #! /bin/csh -f
  2. #
  3. #    audiocheck
  4. #
  5. #    Check whether the system has 'good' audio hardware installed.
  6. #    If not, put up a helpful notifier
  7.  
  8. set hinvout="`hinv|grep Audio`"
  9.  
  10. switch ("$hinvout")
  11. case *Audio*:
  12.     if( ! -f /d/mm/ta/test/sounds/intro ) xconfirm -b OK -header "Sorry..." \
  13.         -t "Because you do not have the audio files for this presentation"\
  14.                 -t "installed, you will be unable to play the audio segments."  > /dev/null
  15.     breaksw
  16. default: xconfirm -b OK -header "Sorry..." \
  17.         -t "Because your IRIS does not have audio hardware, we" \
  18.         -t "recommend that you do not try to play the audio segements"\
  19.         -t "of this presentation." > /dev/null
  20.     breaksw
  21. endsw
  22.